// 获取手机号
const cloud = require('wx-server-sdk');
cloud.init({
  env:cloud.DYNAMIC_CURRENT_ENV
});
exports.main = async (event, context) => {
  if(!event.cloudID){
    return {
      code:500,
      msg:"缺少cloudID"
    }
  }
  // const wxContext = cloud.getWXContext();
  const res = await cloud.getOpenData({
    list:[event.cloudID]
  });
  return {...res,code:200};
};
